package org.flashamaphone.voices.envelope
{
	/**
	 * this envelope doesn't do anything - extend and use!
	 */
	public class Envelope
	{
		/** start value */
		public var startValue:Number = 1;
		
		/** end value */
		public var endValue:Number = 1;
		
		/** rate */
		public var rate:Number = 0;
		
		/** current step */
		protected var _current_step:Number = 0;
		
		/**
		 * c-tor
		 * 
		 * @param start
		 * @param end
		 */
		public function Envelope(start:Number = 1, end:Number = 1) {
			startValue = start;
			endValue = end;
		}
		
		/** 
		 * step to next point in envelope, convert data
		 * 
		 * @param value
		 * @return converted data point
		 */
		public function step(value:Number):Number {
			_current_step += rate;
			return value;
		}
	}
}